<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Integrated Case Management System</title>
	<!-- ============================CSS link goes here============================ -->
	<!-- <link rel="stylesheet" href="css/globle.css"> -->
	<link rel="stylesheet" href="jquery-ui-1.10.3.flick/css/flick/jquery-ui-1.10.3.custom.css">
	<!-- Bootstrap -->
	<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
	<!-- Responsive -->
	<link href="css/bootstrap-responsive.css" rel="stylesheet">
	<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/buttons-min.css">
	<link rel="stylesheet" href="css/pure-skin-mine.css">
	<!-- <link rel="stylesheet" href="css/modal.css"> -->
	<link rel="stylesheet" href="css/decoration.css">
	<link rel="stylesheet" href="css/responsive.css">
	<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" rel="stylesheet">
	<link rel="stylesheet" href="css/progressBar.css">
	<link rel="stylesheet" href="js/jGrowl/jquery.jgrowl.css">
	<link rel="stylesheet" href="css/buttons.css">
	<!-- ============================End of CSS links============================ -->

	<!-- ============================JS file goes here============================ -->
	<script src="jquery-ui-1.10.3.flick/js/jquery-1.9.1.js"></script>
	<script src="jquery-ui-1.10.3.flick/js/jquery-ui-1.10.3.custom.min.js"></script>
	<!-- Bootstrap -->
	<script src="js/bootstrap.min.js"></script>

	<script src="js/AI1JavaScript.js" ></script>
	<script src="js/autocomplete.js"></script>
	<script src="js/prePopulateText.js" ></script>
	<script src="js/jsButton.js" ></script>
	<script src="js/jsResponsive.js"></script>
	<script src="js/jquery.form.js"></script>
	<script src="js/dataExchangeAjax.js"></script>
	<script src="js/jqProgressBar.min.js"></script>
	<script src="js/progressBar.js"></script>
	<script src="js/jGrowl/jquery.jgrowl.js"></script>
	<!-- NProgress -->
	<link rel="stylesheet" href="js/nprogress/nprogress.css">
	<script src="js/nprogress/nprogress.js"></script>
	<!-- google map -->
	<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
    <script src="js/address-map.js"></script>
	
	<script>
		$(document).ready(function() {
			var isClicked = 0;
			$('.collapsible').click(function(event) {
				if(isClicked===0)
				{
					$('#btnCreateConfirm').hide('fade');
					isClicked = 1;
				}else{
					$('#btnCreateConfirm').show('fade');
					isClicked = 0;
				}
			});

			/* slider bar */
			$(function() {
				$( "#distanceSlider" ).slider({
					value:0,
					min: 0,
					max: 1000,
					step: 10,
					slide: function( event, ui ) {
						$( "#distance" ).val( ui.value + " m");
					}
				});
				$( "#distance" ).val($( "#distanceSlider" ).slider( "value" )+" m");

				//incident date slider
				$( "#incidentDateSlider" ).slider({
					value:0,
					min: 0,
					max: 30,
					step: 1,
					slide: function( event, ui ) {
						$( "#incidentDateTbx" ).val( ui.value + " Days");
					}
				});
				$( "#incidentDateTbx" ).val($( "#incidentDateSlider" ).slider( "value" )+" Days");

			
			});
			
		});
	</script>
	<style>
      #map-canvas {
        height: 300px;
        width: 100%;
        margin: 0px auto;
        padding: 0px;
      }
    </style>
</head>
<body>
	<div id="clearScripts" class="prePopu" onclick="clearScripts()">
	</div>
	<header class="row-fluid main">
		<div class="row-fluid">
			<div class="span3 offset9">
				<img id="govLogo" src="images/gov-logo.png" alt="Singapore Government verified" ></img>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<img id="banner" src="../images/title-header.png" alt="Integrated Case Management System" class="span8" href="#">
			</div>
		</div>
		<div class="row-fluid">
			<nav class="navbar">
				<div class="navbar-inner">
					<ul class="nav nav-pills">
						<li><a href="inbox(1).html">Inbox</a></li>
						<li><a href="#">Reports</a></li>
						<li class="active"><a href="create-case(1).html">New Case</a></li>
					</ul>
					<!-- START:login control -->
					<ul class="nav pull-right">
						<li class="divider-vertical"></li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user fa-lg"></i>&nbsp;&nbsp;<span id="username">Litash</span>(<span id="loginType" style="font-weight:600;"></span>)&nbsp;&nbsp;<i class="fa fa-sort-asc"></i></a>
							<ul class="dropdown-menu">
								<li><a href="#">Account</a></li>
								<li><a href="#">Change Password</a></li>
								<li><a href="#">Update Profile Info</a></li>
								<li class="divider"></li>
								<li><a href="login.html" id="btnLogout">Log out</a></li>
							</ul>
						</li>
					</ul>
					<!-- END:login control -->
				</div>
			</nav>
		</div>
		<div class="row-fluid">
			<h1 class="span4" onclick="textScripts()">Create New Case</h1>
			<hr class="thickLine">
		</div>
	</header>
	<div class="main container-fluid">

		<!-- <div class="row"> -->
		
		<!-- <div class="row-fluid">
			<div class="span6">
				<div class="row-fluid">	
					<div class="span4"><label for="#caseIDTrunk">Case ID</label></div>
					<div class="span8">
						<span id="caseIDTrunk"></span>
						<span id="caseID" style="display:none;"></span>
					</div>
				</div>
				<script>acquireNewCaseID()</script>
			</div>
		</div> -->
		<div class="row-fluid">
			<!-- <div class="span6">
				<div class="span4">
					<label for="#agencyCaseID">Agency Case ID</label>
				</div>
				<div class="span8">
					<input type="text" name="agencyCaseID" id="agencyCaseID"/>
				</div>

			</div> -->
			<div class="span6">
				<div class="row-fluid">	
					<div class="span4"><label for="#caseIDTrunk">Agency Case ID</label></div>
					<div class="span8">
						<span id="caseIDTrunk"></span>
						<span id="caseID" style="display:none;"></span>
					</div>
				</div>
				<script>acquireNewCaseID()</script>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="caseStatus">Case Status</label>
				</div>
				<div class="span8">
					<select name="caseStatus" id="caseStatus" tabindex="1">
						<option value="Open">Open</option>
						<option value="Pending">Pending</option>
						<option value="Closed">Closed</option>
					</select>
				</div>
			</div>			
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#fbDate">Incident Date</label>					
				</div>
				<div class="span8">
					<input type="text" class="datepicker" name="feedbackDate" id="fbDate" value="10-Dec-2013" tabindex="2" />
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#recDate">Received Date</label>
				</div>
				<div class="span8">
					<input type="text" class="datepicker" name="receivedDate" id="recDate" value="10-Dec-2013" tabindex="3" />
				</div>
			</div>	
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#dueDate">Due Date</label>
				</div>
				<div class="span8">
					<input type="text" class="datepicker" name="dueDate" id="dueDate" value="15-Dec-2013" tabindex="4" />
				</div>
			</div>
			<div class="span6" id="closedDateDiv">
				<div class="span4">
					<label for="#closedDate">Closed Date</label>
				</div>
				<div class="span8">
					<input type="text" class="datepicker" name="closedDate" id="closedDate" tabindex="5"/>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<h2>Case Detail</h2>
			<hr class="slimLine">
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">			
					<label for="sbjTitle">Subject Title</label>
				</div>
				<div class="span8">
					<input type="text" id="sbjTitle" class="tbx100" tabindex="6" />
				</div>
			</div>
			<div class="span6"></div>
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#feedbackType">Feedback Type</label>
				</div>
				<div class="span8">
					<select name="feedbackType" id="feedbackType">
						<option value="Complaint">Complaint</option>
						<option value="Urgent">Urgent</option>
						<option value="Appeal">Appeal</option>
					</select>
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#channel">Channel</label>
				</div>
				<div class="span8">
					<select name="channel" id="channel">
						<option value="Phone call">Phone call</option>
						<option value="CRM">CRM</option>
						<option value="MobileApp">MobileApp</option>
					</select>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span2">
				<label for="caseDesc">Case Description</label>
			</div>
			<div class="span10" id="caseDescDiv">
				<textarea class="bigTextarea" name="caseDesc" id="caseDesc" placeholder="Enter case description here..."></textarea>
			</div>		
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="autoComp">Category Search</label>
				</div>
				<div class="span8">	
					<!-- input for Category keywords. MUST USE 'autoComp' because the id in js is that -->
					<input type="text" class="autoComp tbx100" id="autoComp" placeholder="Enter keyword for categories...">
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="autoComp-category">Category</label>
				</div>
				<div class="span8">
					<span id="autoComp-category" class="autoComp-category"></span>
				</div>
			</div>
		</div>
		
		<div class="row-fluid">
			
			<div class="span6 offset6">
				<div class="span4">
					<label for="autoComp-subCate">Sub Category</label>
				</div>
				<div class="span8">
					<span id="autoComp-subCate" class="autoComp-subCate"></span>			
				</div>
			</div>
		</div>
		<br/>
		<!-- <div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="address">Address</label>
				</div>
				<div class="span8">
					<textarea name="address" id="address" class="tbxAddress"></textarea>
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#postalCode">Postal Code</label>
				</div>
				<div class="span8">
					<input type="text" name="postalCode" id="postalCode"></input>			
				</div>
			</div>
		</div> -->
		<!-- START: google map -->
		<div class="row-fluid" id="panel">
			<div class="span6">
				<div class="row-fluid">
					<div class="span4">
						<label for="#target">Address</label>
					</div>
					<div class="span8">	
						<input id="target" class="tbx100" type="text" placeholder="Enter location or address or postal code...">
						<input id="latlong" type="hidden">
					</div>
				</div>
				<div class="row-fluid">
					<div class="span4">
					<label for="">Location Description</label>
				</div>
				<div class="span8">
					<textarea name="" id="" class="bigTextarea" ></textarea>
				</div>



				</div>	
			</div>
			<div class="span6">
				<div id="mapErrorMsg"></div>
					<div id="map-canvas"></div>
			</div>
		</div>
		<!-- END: google map -->
		



		<!-- <div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#lastUpdateAgency">Last Update Agency</label>
				</div>
				<div class="span8">
					<input type="text" name="lastUpdateAgency" id="lastUpdateAgency" readonly="true">
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#lastUpdateDate">Last Update Date</label>		
				</div>
				<div class="span8">	
					<input type="text" name="lastUpdateDateTime" id="lastUpdateDateTime" readonly="true">
				</div>
			</div>
		</div> -->
		<div class="rowfluid">
			<h2>Customer Information</h2>
			<hr class="slimLine">
		</div>

		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#custName">Customer Name</label>
				</div>
				<div class="span8">
					<input type="text" name="custName" id="custName"></input>
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#phone">Contact Number</label>
				</div>
				<div class="span8">
					<input type="text" name="phone" id="phone"></input>	
				</div>
			</div>
		</div>
		
		<div class="row-fluid">
			<div class="span6">
				<div class="span4">
					<label for="#email">Email</label>
				</div>
				<div class="span8">
					<input type="text">
				</div>
			</div>
			<div class="span6">
				<div class="span4">
					<label for="#mCustID">Mobile Customer ID</label>
				</div>
				<div class="span8">
					<input type="text" name="email" id="mCustID" readonly="true"></input>
				</div>
			</div>
		</div>
		<!--Child case part-->
		<div id="childCasesPart">
			<div class="row-fluid">
				<h2>Child Cases</h2>
				<hr class="slimLine">
			</div>
			<div class="row-fluid">
				<div id="childCaseTableWrap">
					<table id="childCaseTable" class="childTable">
						<thead>
							<tr>
								<th>Child Case ID</th>
								<th>Subject Title</th>
								<th>Category</th>
								<th>Case Status</th>
								<th>Routing Date</th>
								<th>Due Date</th>
								<th>Agency</th>
							</tr>
						</thead>
						<tbody>
							<!--child cases are added in here-->
						</tbody>
					</table>
				</div>
			</div>
		</div>

		<!-- joint agencies part-->
		<div id="jointAgencyPart">
			<div class="row-fluid">
				<h2 class="subTitle">Agencies Involved</h2>
				<hr class="slimLine">
			</div>
			<div id="jointAgencyTableWrap">
				<table id="jointAgencyTable" class="agencyTable">
					<thead>
						<tr>
							<th id="name" style="width:40%;">Agency Name</th>
							<th id="lead" style="width:20%;">Lead Agency</th>
							<th id="status" style="width:40%;">Status</th>
						</tr>
					</thead>
					<tbody>
						<!--child cases go here-->
					</tbody>
				</table>
			</div>
		</div>

		<!-- START: More Option panels -->
		

		<!-- ********** START: More Option panels ********** -->
		<div class="row-fluid">
			<h2 class="collapsible" style="cursor:pointer;">More Options&nbsp;&nbsp;<i class="fa fa-chevron-down"></i></h2>
			<hr class="slimLine">
		</div>
		<div class="row-fluid" id="optionsPanel">
			<div class="tabbable row-fluid" id="panelHeader">
				<ul id="panelTabs" class="nav nav-tabs" data-tabs="tabs"> 
					<!--li class="active"><a href="#panelReply" data-toggle="tab">Reply to customer</a></li--> 
					<li class="active"><a href="#panelReroute" data-toggle="tab">Route</a></li> 
					<li><a href="#panelMulti" data-toggle="tab">Joint</a></li> 
					<li><a href="#panelLink" data-toggle="tab">Link</a></li> 
					<!--li><a href="#panelJoint" data-toggle="tab">Joint Resolution</a></li-->
					<!-- <li><a href="#panelReturn" data-toggle="tab">Return to sender</a></li>  -->
				</ul> 
			</div>
			
			<div class="tab-content row-fluid" id="panelArea">
				<!-- reply tab -->
				<!--div class="tab-pane fade active in" id="panelReply">
					<div class="row-fluid">
						<div class="span2">
							<label for="#panelReply-caseReply">Enter Reply</label>
						</div>
						<div class="span10">
							<textarea class="bigTextarea" name="caseReply" id="panelReply-caseReply" placeholder="This is the reply seen by the customer"></textarea>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span2 offset2">
							<label style="cursor:pointer;"><input type="radio" name="replyType" id="panelReply-cbxInterim" value="0">Interim Reply</input></label>
						</div>
						<div class="span2">
							<label style="cursor:pointer;"><input type="radio" name="replyType" id="panelReply-cbxInterim" value="1">Final Reply</input></label>
						</div>
						<div class="span5 offset1">
							<label for="#panelReply-ddlInformedCustomer" style="float:left;">Informed Customer?</label>
							<select name="informedCustomer" id="panelReply-ddlInformedCustomer" style="float:right; width:50%;">
								<option value="yes">YES</option>
								<option value="No">NO</option>
							</select>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span2"><label for="#panelReply-replyRemarks">Remarks (Internal)</label></div>
						<div class="span10">
							<textarea class="bigTextarea" name="replyRemarks" id="panelReply-replyRemarks" placeholder="These remarks will not be visible to the customer"></textarea>
						</div>
					</div>
					<button id="panelReply-btnSubmitReply" type="button" class="pure-button pure-button-primary tailButton" onclick="submitReply()">Submit</button>
				</div-->
				<!-- reroute tab -->
				<div class="tab-pane fade active in" id="panelReroute">
					<div class="row-fluid">
						
						<!-- START: Text Analytic Widget (button and bars) -->
						<div class="span6">
							<div class="row-fluid">
								<div class="span4">
									<label>Suggested Agency</label>
								</div>
								<div class="span8">
									<button type="submit" class="pure-button pure-button-primary" id="btnAnalyzeDesc">Analyze Description&nbsp;<i id="icon-loading" class="fa fa-spinner fa-spin"></i></button>
								</div>
							</div>
							<div id="progressBarsDiv" class="row-fluid" style="margin-left:1%;margin-bottom:1%;">	
								<div class="span4">
									<span>Probability:</span>
								</div>
								<div class="span8">
									<div class="row-fluid">
										<div class="span3">
											<span>LTA</span>
										</div>
										<div class="span9">
											<div class="progressBar" id="progressBar1">
												<div></div>
											</div>
										</div>
									</div>
									<div class="row-fluid">
										<div class="span3">
											<span>NEA</span>
										</div>
										<div class="span9">
											<div class="progressBar" id="progressBar2">
												<div></div>
											</div>	
										</div>
									</div>
									<div class="row-fluid">
										<div class="span3">
											<span>PUB</span>
										</div>
										<div class="span9">
											<div class="progressBar" id="progressBar3">
												<div></div>
											</div>
										</div>
									</div>
						<!-- <div class="row-fluid">
							<p style="color: #666; font-family: Calibri; font-size: 1.2em; text-align: left; margin:0px;">This case most likely belongs to: <span id="recomAgency" style="color:#0D8EFC;font-weight:600"></span></p>
						</div> -->

								</div>
							</div>
						</div>	
						<!-- END: Text Analytic Widget (button and bars) -->	

						<div class="span6">
							<div class="span4">
								<label for="autoComp-agency">Agency</label>
							</div>
							<div class="span8">
								<select id="autoComp-agency" class="autoComp-agency">
									<option value="NEA">NEA</option>
									<option value="AVA">AVA</option>
									<option value="HDB">HDB </option>
									<option value="LTA">LTA</option>
									<option value="NPARKS">NPARKS</option>
									<option value="PUB">PUB</option>
									<option value="SPF">SPF</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span2"><label for="#panelReroute-Remarks">Remarks</label></div>
						<div class="span10" style="margin">
							<textarea name="rerouteRemarks" id="panelReroute-Remarks" class="bigTextarea"></textarea>
						</div>
					</div>
					<div class="row-fluid">
						<button type="submit" id="btnCreateMoreOptRouteSend" class="pure-button pure-button-primary tailButton">Send</button>
					</div>
				</div>
				<!-- link cases tab -->
				<div class="tab-pane fade" id="panelLink">
					<div class="row-fluid">
						<div class="span2"><label for="#panelLink-Search">Search Cases</label></div>
						<div class="span10"><input type="text" id="panelLink-Search" placeholder="E.g. Subject Title, Description, Category, Customer, Email" class="tbx100"></div>
					</div>
					<!--div class="row-fluid">
						<div class="span6">
							<div class="span4">
								<label for="#searchCustName">Customer Name</label>
							</div>
							<div class="span8">
								<input type="text" id="searchCustName">
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="#searchEmail">Email</label>
							</div>
							<div class="span8">
								<input type="text" id="searchEmail">
							</div>
						</div>
					</div-->
					<hr>
					<div class="row-fluid">
						<div class="span6">
							<div class="span4">
								<label for="#panelLink-CaseID">Case ID</label>
							</div>
							<div class="span8">
								<input type="text" id="panelLink-CaseID">
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="">Incident Date</label>
							</div>
							<div class="span7">
								<div class="row-fluid">
									<div class="span8">
										<div id="incidentDateSlider" style="margin-top: 5px;"></div>
									</div>
									<div class="span2">Within</div>
									<div class="span2">
										<input type="text" id="incidentDateTbx" style="width:50px;height: 15px;" />
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span6">
							<div class="span4">
								<label for="#panelLink-Agency">Agency</label>
							</div>
							<div class="span8">
								<select name="panelLink-Agency" id="linkAgency">
									<option value="Undefined">--Choose Agency--</option>
									<option value="AVA">AVA</option>
									<option value="NEA">NEA</option>
									<option value="LTA">LTA</option>
									<option value="NPARKS">NPARKS</option>
									<option value="SPF">SPF</option>
									<option value="PUB">PUB</option>
									<option value="PSD">PSD</option>
								</select>
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="#distance">Distance range:</label>
							</div>
							<div class="span7">
								<div class="row-fluid">
									<div class="span8">
										<div id="distanceSlider" style="margin-top: 5px;"></div>
									</div>
									<div class="span2">Within</div>
									<div class="span2">
										<input type="text" id="distance" style="width:50px;height: 15px;" />
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span6 offset6">
							<div class="span8 offset4">
								<button type="submit" class="pure-button pure-button-primary tailButton">Search</button>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<h3></h3>
						<hr class="slimLine">
					</div>
					<div class="row-fluid inboxTable">
						<table cellpadding="0" cellspacing="0" border="0" class="display dataTable" id="linkCaseTable" width="100%" aria-describedby="" style="width: 100%;">
							<colgroup>
							<col span="1" style="width: 2%;">
							<col span="1" style="width: 10%;">
							<col span="1" style="width: 19%;">
							<col span="1" style="width: 10%;">
							<col span="1" style="width: 15%;">
							<col span="1" style="width: 17%;">
							<col span="1" style="width: 17%;">
							<col span="1" style="width: 10%;">
						</colgroup>
						<thead>
							<tr>
								<th><input type="checkbox" id="cbxAll"></input></th>
								<th>Case ID</th>
								<th>Subject Title</th>
								<th>Category</th>
								<th>Case Status</th>
								<th>Incident Date</th>
								<th>Due Date</th>
								<th>Agency</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><input type="checkbox"></input></td>
								<td>201365218456</td>
								<td>Pile of rubbish left at HDB block</td>
								<td>Illegal Dumping</td>
								<td>Pending HDB</td>
								<td>25-Aug-2013</td>
								<td>23-Aug-2013</td>
								<td>HDB</td>
							</tr>
						</tbody>
					</table>
				</div>
				<hr>
				<div class="row-fluid">
					<div class="span6 offset6">
						<div class="row-fluid">
							<div class="span4 offset2">
								<label style="cursor:pointer;"><input type="radio" name="linkType" value="Duplicated">Duplicated case</input></label>
							</div>
							<div class="span4">
								<label style="cursor:pointer;"><input type="radio" name="linkType" value="Related">Related case</input></label>
							</div>
							<div class="span2">
								<button type="submit" class="pure-button pure-button-primary tailButton" id="btnLinkCase">Link</button>
							</div>
						</div>
					</div>
				</div>				
			</div>
			<!-- Joint panel (pre-named as "multi issue") -->
			<div class="tab-pane fade" id="panelMulti">
				<div class="row-fluid">
					<div class="span2">
						<label for="#panelMulti-SubjectTitle">Child Subject Title</label>
					</div>
					<div class="span10">
						<input type="text" id="panelMulti-SubjectTitle" class="tbx100" value="Foul smell at big canal in East Coast Park"/>
					</div>
				</div>
				<div class="row-fluid">
					<div class="span2">
						<label for="#panelMulti-Issue">Child Case Description</label>
					</div>
					<div class="span10">
						<textarea name="issueDescription" id="panelMulti-Issue" class="bigTextarea">jogger caught strong smell while jogging towards underpass. He suspected it is due to leaked or choked sewer</textarea>
					</div>
				</div>
				<div class="row-fluid">
					<div class="span6">
						<div class="span4">
							<label for="#panelJoint-autoComp-agency">Target Agency</label>
						</div>
						<div class="span8">
							<select id="panelJoint-autoComp-agency" class="autoComp-agency">
								<option value="Undefined">--Choose Agency--</option>
								<option value="AVA">AVA</option>
								<option value="HDB">HDB </option>
								<option value="LTA">LTA</option>
								<option value="NEA">NEA</option>
								<option value="NPARKS">NPARKS</option>
								<option value="PUB">PUB</option>
								<option value="SPF">SPF</option>
							</select>
						</div>
					</div>
					<div class="span6">
						<label style="cursor:pointer;"><input type="checkbox" id="isLeadAgency">Lead Agency</label>
					</div>
				</div>


					<!-- <div class="row-fluid">
						<div class="span6">
							<div class="span4">
								<label for="#panelMulti-Address">Address</label>
							</div>
							<div class="span8">
								<textarea name="address" id="panelMulti-Address" class="tbxAddress"></textarea>
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="#panelMulti-Postal">Postal Code</label>
							</div>
							<div class="span8">
								<input type="text" id="panelMulti-Postal" placeholder="6 digits postal code">
							</div>
						</div>
					</div> -->
					
					<div class="row-fluid">
						<button type="submit" id="btnAddAgency" class="pure-button pure-button-primary tailButton">+ Add Agency</button>
					</div>
					<div id="addedAgenciesWrapDiv">
						<div class="row-fluid">
							<h2>Added Agencies</h2>
							<hr class="slimLine">
						</div>
						<div class="row-fluid">
							<div class="span10 offset1 jointInvolvedTable">
								<table id="addedAgenciesTable">
									<!-- <colgroup>
									<col span="1" style="width:30%;">
									<col span="1" style="width:20%;">
									<col span="1" style="width:20%;">
									<col span="1" style="width:15%;">
									<col span="1" style="width:15%;">
								</colgroup> -->
								<thead>
									<tr>
										<th>Subject Title</th>
											<!-- <th>Category</th>
											<th>Sub-Category</th> -->
											<th>Agency</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
										
									</tbody>
								</table>
							</div>
						</div>
						<br/>
						<br/>
						<div class="row-fluid">
							<button type="button" id="btnCreateSendJointAgency" class="pure-button pure-button-primary tailButton">Create</button>
						</div>
					</div>
					
				</div>

				<!-- joint resolution panel -->
				<!--div class="tab-pane fade" id="panelJoint">
					<div class="row-fluid">
						<div class="span6">
							<div class="span4">
								<label for="#panelJoint-category">Category</label>
							</div>
							<div class="span8">
								<select name="Category" id="panelJoint-category">
									<option value="Animal">Animal</option>
									<option value="Air polution">Air polution</option>
									<option value="BCA">BCA</option>
									<option value="Bicycle">Bicycle</option>
									<option value="danger">danger</option>
								</select>
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="#panelJoint-sub-category">Sub Category</label>
							</div>
							<div class="span8">
								<select name="Category" id="panelJoint-sub-category">
									<option value="Animal">Animal</option>
									<option value="Air polution">Air polution</option>
									<option value="BCA">BCA</option>
									<option value="Bicycle">Bicycle</option>
									<option value="danger">danger</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span2">
							<label for="#panelJoint-remarks">Remarks</label>
						</div>
						<div class="span10">
							<textarea name="remarks" id="panelJoint-remarks" class="bigTextarea"></textarea>
						</div>
					</div>
					<hr class="slimLine">
					<div class="row-fluid">
						<div class="span6">
							<div class="row-fluid">
								<div class="span4">
									<label for="#panelJoint-TargetAgency">Target Agency</label>
								</div>
								<div class="span8">
									<select name="tergetAgency" id="panelJoint-TargetAgency">
										<option value="NEA">NEA</option>
										<option value="Undefined">Choose Agency</option>
										<option value="AVA">AVA</option>
										<option value="LTA">LTA</option>
										<option value="NPARKS">NPARKS</option>
										<option value="SPF">SPF</option>
										<option value="PUB">PUB</option>
										<option value="PSD">PSD</option>
									</select>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span8 offset4">
									<label style="cursor:pointer;"><input type="checkbox">Lead Agency</label>
								</div>
							</div>
						</div>
						<div class="span6">
							<div class="span4">
								<label for="#panelJoint-Agency-remarks">Remarks</label>
							</div>
							<div class="span8">
								<textarea name="agencyRemarks" id="panelJoint-Agency-remarks" class="tbxAddress"></textarea>
							</div>
						</div>
					</div>
					<div class="row-fluid">
						<button type="submit" class="pure-button pure-button-primary tailButton">+ Add Agency</button>
					</div>
				</div-->


				<!-- return to sender panel -->
				<div class="tab-pane fade" id="panelReturn">
					<div class="row-fluid">
						<div class="span2">
							<label for="#panelReroute-Reason">Returning Reason</label>
						</div>
						<div class="span10">
							<textarea name="returningReason" id="panelReroute-Reason" class="bigTextarea"></textarea>
						</div>
					</div>
					<div class="row-fluid">
						<button type="submit" class="pure-button pure-button-primary tailButton">Send</button>
					</div>
				</div>
			</div><!-- end of inner tabs tag -->
		</div><!-- end of tabs nav tag -->
		
		<!-- *********** END: More Option panels ***********  -->

		


		<!-- END: More Option panels -->

		<!-- buttons -->
		<div class="row-fluid" style="min-height:20px;"></div>
		<div class="row-fluid">
			<div class="span4 offset8">
				<button id="btnCreateConfirm" type="submit" class="pure-button pure-button-primary" style="float:right;margin-left:15px;">Save</button>
				<!-- <button type="submit" class="pure-button pure-button-secondary" style="float:right;margin-left:15px;">More Options</button> -->
			</div>
		</div>
	</div>
	<div style="height:100px;"></div>
	<footer class="row-fluid">
		<span id="copyright">&copy; Copyright 2013, All rights Reserved.</span>
		<span id="PSTCD">Privacy Statement | Terms &amp; Conditions | Disclaimer</span>
	</footer>

</body>
</html>